package com.ruoyi.ui.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 评论管理对象 ui_comment
 * 
 * @author ruoyi
 * @date 2022-09-06
 */
public class UiComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long commentId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;


    /** 用户id */
    @Excel(name = "用户id")
    private Long memberId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date commentTime;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentTitle;

    /** 附加图片 */
    @Excel(name = "附加图片")
    private String commentImg;

    /** 1 通过 0 未通过 2审核中 */
    @Excel(name = "1 通过 0 未通过 2审核中")
    private Integer state;





    public void setCommentId(Long commentId)
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setCommentTime(Date commentTime) 
    {
        this.commentTime = commentTime;
    }

    public Date getCommentTime() 
    {
        return commentTime;
    }
    public void setCommentTitle(String commentTitle) 
    {
        this.commentTitle = commentTitle;
    }

    public String getCommentTitle() 
    {
        return commentTitle;
    }
    public void setCommentImg(String commentImg) 
    {
        this.commentImg = commentImg;
    }

    public String getCommentImg() 
    {
        return commentImg;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("memberId", getMemberId())
            .append("orderId", getOrderId())
            .append("commentTime", getCommentTime())
            .append("commentTitle", getCommentTitle())
            .append("commentImg", getCommentImg())
            .append("state", getState())
            .append("nickName", getNickName())
            .toString();
    }
}
